﻿<!--#include file="utf-8.asp"-->
<!--#include file="sql.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="config.asp" -->
<%
'######################################
' 安科外贸网站管理系统中英文双语版
' anke Enterprise Web Site Management System
' 官方网站：http://www.shejifang.org
' 联系QQ：357052954
' 淘宝店： http://shejifang.taobao.com
'######################################
%>
<%
dim id,rs,exec,ssfl,rstt,exectt,tt,tt2
id = request.querystring("id")
If id="" Then     
server_v40=Request.ServerVariables("QUERY_STRING")    
id=Int(replace(replace(server_v40,"/",""),".html",""))  
End If  

if id = "" or not isnumeric(id) then
response.write "<script>alert('非法操作');history.back();</script>"
response.end
end if
 
exec="select * from shop where id="&id
set rs=server.createobject("adodb.recordset") 
rs.open exec,conn,1,1

if rs.eof then
rs.close
set rs = nothing
conn.close
set conn = nothing
response.write "<script>alert('不存在此数据');history.back();</script>"
response.end
end if 

ssfl = rs("ssfl")
%>
<%
sql = "UPDATE shop SET hits = hits + 1 WHERE id ="&id
conn.execute(sql)
%>
<%
set rstt=server.createobject("adodb.recordset") 
exectt="select * from shop_fl where id="&ssfl
rstt.open exectt,conn,1,1
tt = rstt("id")
tt2 = rstt("sid")
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=rs("title")%>-<%=config("title")%></title>
<meta name="keywords" content="<%=rs("keyword")%>" />
<meta name="description" content="<%=rs("description2")%>" />
<link href="images/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="css/3css.css" media="screen" />
    <script type="text/javascript">
    $(function() {
        $('.apic').lightBox();
    });
    </script>
</head>
<body>
<!--#include file="header.asp" -->
<table width="913" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="193" valign="top">
    <table width="193" border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">
        <!--左侧导航-->
        <!--#include file="left.asp"-->
        </td>
      </tr>
      <tr>
        <td width="193" height="324" align="center" valign="top">
        <!--热点产品-->
        <!--#include file="hot.asp"-->
        </td>
      </tr>
    </table></td>
    <td width="720" valign="top">
    
    <table width="720" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="720" height="34" align="right" valign="middle" background="images/title.jpg">
        <span style="float:left; padding:2px 0px 0px 24px; font-weight:bold; font-size:14px; color:#333333;">产品展示</span>
        <a href="main.asp">网站首页</a> > <a href="shop.asp?/1.html">产品中心</a>
        </td>
	</tr>
	<tr>
		<td height="260">
        <div class="showpic"><a href="<%=rs("img")%>" target="_blank" class="apic"><img src="<%=rs("img")%>" width="260" height="260" border="0" /></a></div>
        <div class="showpic2">
        <div class="showpic3"><%=rs("title")%></div>
        <div class="showpic4">
          <p><strong>产品编号：</strong><b><%=rs("ProductNo")%></b></p>
          <p><strong>产品描述：</strong><%=rs("description2")%></p>
          <p><a href="dg.asp?id=<%=id%>"><img src="images/order.jpg" width="126" height="36" border="0" /></a></p>
        </div>
        </div>
        </td>
	</tr>
	<tr>
		<td valign="top">
        </td>
	</tr>
</table>
    <div class="miaoshu">
    <span style="float:left; padding:10px 0px 0px 29px; font-weight:bold; font-size:14px; color:#518914;">产品介绍</span>
    </div>
    <div class="miaoshu2"><%=rs("body")%></div>
    </td>
  </tr>
</table>
<!--#include file="foot.asp" -->
</body>
</html>
<%
rs.close
set rs = nothing
rstt.close
set rstt=nothing
conn.close
set conn = nothing
%>